<?php require VIEW_PATH."/header.php";?>
<body>
	<form method="post">
<table class="hd-table hd-table-form hd-form">
    <thead>
    <tr>
        <td colspan="2">添加栏目</td>
    </tr>
    </thead>
    <tbody>
    <tr>
        <th>父级</th>
        <td>
           <select name="pid">
               <option value="0">===顶级栏目===</option>
               <?php foreach ($cat as $v){?>
<option value="<?php echo $v['cat_id']?>"><?php echo $v['_cat_name']?></option>
               <?php }?>
           </select>
        </td>
    </tr>
    <tr>
        <th>栏目名称</th>
        <td>
            <input type="text" name="cat_name" class="hd-w300">
        </td>
    </tr>
    <tr>
        <th>搜索类型</th>
        <td>
        <select name="type_id" id="">
        <?php foreach ($goodsType as $v){?>
        <option value="<?php echo $v['id']?>"><?php echo $v['type_name']?></option>
        <?php }?>
        </select>
        </td>
    </tr>
   <tr>
        <th>栏目关键词</th>
        <td>
            <input type="text" name="keyword" class="hd-w300">
        </td>
    </tr>
    <tr>
        <th>栏目描述</th>
        <td>
            <textarea name="dest" class="hd-w300 hd-h100"></textarea>
        </td>
    </tr>
    <tr>
        <td colspan="2">
        <button class="hd-btn hd-btn-primary">提交</button>
        </td>
    </tr>
    </tbody>
</table>
</form>
</body>
</html>